
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-check"></use>
                    </svg>
                    <div class="name">check</div>
                    <div class="fontclass">#alicon-check</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-close"></use>
                    </svg>
                    <div class="name">close</div>
                    <div class="fontclass">#alicon-close</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-edit"></use>
                    </svg>
                    <div class="name">edit</div>
                    <div class="fontclass">#alicon-edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-loading"></use>
                    </svg>
                    <div class="name">loading</div>
                    <div class="fontclass">#alicon-loading</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundcheckfill"></use>
                    </svg>
                    <div class="name">round_check_fill</div>
                    <div class="fontclass">#alicon-roundcheckfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundcheck"></use>
                    </svg>
                    <div class="name">round_check</div>
                    <div class="fontclass">#alicon-roundcheck</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundclosefill"></use>
                    </svg>
                    <div class="name">round_close_fill</div>
                    <div class="fontclass">#alicon-roundclosefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundclose"></use>
                    </svg>
                    <div class="name">round_close</div>
                    <div class="fontclass">#alicon-roundclose</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundrightfill"></use>
                    </svg>
                    <div class="name">round_right_fill</div>
                    <div class="fontclass">#alicon-roundrightfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundright"></use>
                    </svg>
                    <div class="name">round_right</div>
                    <div class="fontclass">#alicon-roundright</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-search"></use>
                    </svg>
                    <div class="name">search</div>
                    <div class="fontclass">#alicon-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-unfold"></use>
                    </svg>
                    <div class="name">unfold</div>
                    <div class="fontclass">#alicon-unfold</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-back"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#alicon-back</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-more"></use>
                    </svg>
                    <div class="name">more</div>
                    <div class="fontclass">#alicon-more</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-form"></use>
                    </svg>
                    <div class="name">form</div>
                    <div class="fontclass">#alicon-form</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-refresh"></use>
                    </svg>
                    <div class="name">refresh</div>
                    <div class="fontclass">#alicon-refresh</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-moreandroid"></use>
                    </svg>
                    <div class="name">more_android</div>
                    <div class="fontclass">#alicon-moreandroid</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-delete"></use>
                    </svg>
                    <div class="name">delete</div>
                    <div class="fontclass">#alicon-delete</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundaddfill"></use>
                    </svg>
                    <div class="name">round_add_fill</div>
                    <div class="fontclass">#alicon-roundaddfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundadd"></use>
                    </svg>
                    <div class="name">round_add</div>
                    <div class="fontclass">#alicon-roundadd</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-add"></use>
                    </svg>
                    <div class="name">add</div>
                    <div class="fontclass">#alicon-add</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-fold"></use>
                    </svg>
                    <div class="name">fold</div>
                    <div class="fontclass">#alicon-fold</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-info"></use>
                    </svg>
                    <div class="name">info</div>
                    <div class="fontclass">#alicon-info</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-sort"></use>
                    </svg>
                    <div class="name">sort</div>
                    <div class="fontclass">#alicon-sort</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-copy"></use>
                    </svg>
                    <div class="name">copy</div>
                    <div class="fontclass">#alicon-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-post"></use>
                    </svg>
                    <div class="name">post</div>
                    <div class="fontclass">#alicon-post</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-write"></use>
                    </svg>
                    <div class="name">write</div>
                    <div class="fontclass">#alicon-write</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-add1"></use>
                    </svg>
                    <div class="name">add</div>
                    <div class="fontclass">#alicon-add1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-move"></use>
                    </svg>
                    <div class="name">move</div>
                    <div class="fontclass">#alicon-move</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-text"></use>
                    </svg>
                    <div class="name">text</div>
                    <div class="fontclass">#alicon-text</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundleftfill"></use>
                    </svg>
                    <div class="name">round_left_fill</div>
                    <div class="fontclass">#alicon-roundleftfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-roundaddlight"></use>
                    </svg>
                    <div class="name">round_add_light</div>
                    <div class="fontclass">#alicon-roundaddlight</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-up"></use>
                    </svg>
                    <div class="name">up</div>
                    <div class="fontclass">#alicon-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-sortlight"></use>
                    </svg>
                    <div class="name">sort_light</div>
                    <div class="fontclass">#alicon-sortlight</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-up1"></use>
                    </svg>
                    <div class="name">up</div>
                    <div class="fontclass">#alicon-up1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-zhuanhuan1"></use>
                    </svg>
                    <div class="name">转换</div>
                    <div class="fontclass">#alicon-zhuanhuan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-plus-transfer"></use>
                    </svg>
                    <div class="name">转移</div>
                    <div class="fontclass">#alicon-plus-transfer</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-close_light"></use>
                    </svg>
                    <div class="name">close_light</div>
                    <div class="fontclass">#alicon-close_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-add_light"></use>
                    </svg>
                    <div class="name">add_light</div>
                    <div class="fontclass">#alicon-add_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-edit_light"></use>
                    </svg>
                    <div class="name">edit_light</div>
                    <div class="fontclass">#alicon-edit_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-back_light"></use>
                    </svg>
                    <div class="name">back_light</div>
                    <div class="fontclass">#alicon-back_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-friend_light"></use>
                    </svg>
                    <div class="name">friend_light</div>
                    <div class="fontclass">#alicon-friend_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-form_light"></use>
                    </svg>
                    <div class="name">form_light</div>
                    <div class="fontclass">#alicon-form_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-delete_light"></use>
                    </svg>
                    <div class="name">delete_light</div>
                    <div class="fontclass">#alicon-delete_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-back_android_light"></use>
                    </svg>
                    <div class="name">back_android_light</div>
                    <div class="fontclass">#alicon-back_android_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-down_light"></use>
                    </svg>
                    <div class="name">down_light</div>
                    <div class="fontclass">#alicon-down_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-round_close_light"></use>
                    </svg>
                    <div class="name">round_close_light</div>
                    <div class="fontclass">#alicon-round_close_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-round_close_fill_light"></use>
                    </svg>
                    <div class="name">round_close_fill_light</div>
                    <div class="fontclass">#alicon-round_close_fill_light</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-enter"></use>
                    </svg>
                    <div class="name">enter</div>
                    <div class="fontclass">#alicon-enter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-touxiang"></use>
                    </svg>
                    <div class="name">头像</div>
                    <div class="fontclass">#alicon-touxiang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-jisuanqi"></use>
                    </svg>
                    <div class="name">计算器</div>
                    <div class="fontclass">#alicon-jisuanqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-baobiaotongji"></use>
                    </svg>
                    <div class="name">报表统计</div>
                    <div class="fontclass">#alicon-baobiaotongji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-shezhi"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#alicon-shezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-Group-"></use>
                    </svg>
                    <div class="name">提示</div>
                    <div class="fontclass">#alicon-Group-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-Group-1"></use>
                    </svg>
                    <div class="name">下载</div>
                    <div class="fontclass">#alicon-Group-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-chaxun"></use>
                    </svg>
                    <div class="name">查询</div>
                    <div class="fontclass">#alicon-chaxun</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-wendang-daoru"></use>
                    </svg>
                    <div class="name">文档-导入</div>
                    <div class="fontclass">#alicon-wendang-daoru</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-wendang-chenggong"></use>
                    </svg>
                    <div class="name">文档-成功</div>
                    <div class="fontclass">#alicon-wendang-chenggong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-suo"></use>
                    </svg>
                    <div class="name">缩</div>
                    <div class="fontclass">#alicon-suo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-shen"></use>
                    </svg>
                    <div class="name">shen</div>
                    <div class="fontclass">#alicon-shen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-zhankai"></use>
                    </svg>
                    <div class="name">展开</div>
                    <div class="fontclass">#alicon-zhankai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#alicon-shousuo"></use>
                    </svg>
                    <div class="name">收缩</div>
                    <div class="fontclass">#alicon-shousuo</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#alicon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
